
<?php
//模块插件类
//对外接口函数类，其他插件可通过“$this->plugin('模块名称')->方法名” 来调用本类的方法
defined('BY_JYA') or exit('error');
class func_jy_cmso2o extends plugin{
	public function getlist($key){
		$params=array('uniacid'=>$_SESSION['uniacid']);
		if($key=='ishome'){
			$params['ishome']=1;	
		}
		if($key=='ishot'){
			$params['ishot']=1	;
		}
		$list=pdo_getall('jy_o2o_list',$params);
		return $list;
	}
	//生成小程序二维码
	
	public function getmenus(){
		return $this->menu();
	}
	public function getactionlinks(){
		return $this->actionlink();
	}
	public function getactiontypes(){
		return $this->actiontypes();
	}
	public function getplugins(){
		return $this->plugins();
	}
}
?>
